'use strict';
module.exports = app => {
  const { STRING, TINYINT, BIGINT } = app.Sequelize;

  const MallShopApply = app.model.define('mall_shopApply', {
    user_id: {
      type: BIGINT,
      allowNull: false,
      comment: '用户id',
    },
    name: {
      type: STRING,
      allowNull: false,
      comment: '姓名',
    },
    phone: {
      type: BIGINT,
      allowNull: false,
      comment: '手机号码',
    },
    idCard: {
      type: BIGINT,
      allowNull: false,
      comment: '身份证号码',
    },
    address: {
      type: STRING,
      allowNull: false,
      comment: '地址',
    },
    idCard_just: {
      type: STRING,
      allowNull: false,
      comment: '身份证正面',
    },
    idCard_opposite: {
      type: STRING,
      allowNull: false,
      comment: '身份证背面',
    },
    idCard_take: {
      type: STRING,
      allowNull: false,
      comment: '手持身份证',
    },
    desc: {
      type: STRING,
      comment: '审核描述',
    },
    status: {
      type: TINYINT,
      allowNull: false,
      defaultValue: 1,
      comment: '状态(0:审核失败;1:审核中;2:审核通过)',
    },

  });

  return MallShopApply;
};
